package com.atguigu.gmall.common.executor.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.concurrent.TimeUnit;

/**
 * @Author:lyd
 * @Date:2023/8/24 14:12
 * @Version:1.0
 * @Description
 **/
@ConfigurationProperties(prefix = "app-thread-pool")
@Data
public class ThreadPoolProperties {
    private Integer core = 4;
    private Integer max = 8;
    private Long keepAliveTime = 5L;
    private TimeUnit unit = TimeUnit.MINUTES;
    private Integer workQueueSize = 1000;

}
